@primary-color: #409eff;
.group-container {
  padding: 10px;

  .title {
    position: relative;
    font-weight: bold;
    line-height: 1;
    padding-left: 10px;

    &:before {
      position: absolute;
      content: ' ';
      width: 3px;
      height: 100%;
      top: 0;
      left: 0;
      background: #409eff;
    }
  }

  .component-list {
    border: 1px dashed #ccc;
    box-sizing: border-box;
    margin-top: 20px;
    padding: 20px 0;

    .item {
      padding: 17px 10px;
      margin-bottom: 10px;
      position: relative;

      &:last-child {
        margin-bottom: 0;
      }

      span {
        position: absolute;
        display: block;
        width: 24px;
        height: 24px;
        line-height: 24px;
        text-align: center;
        border-radius: 50%;
        top: -12px;
        background: #fff;
        cursor: pointer;
        opacity: 0;
        transition: opacity 0.2s linear;

        &.setting {
          color: @primary-color;
          border: 1px solid @primary-color;
          right: 50px;
        }

        &.move {
          color: @primary-color;
          border: 1px solid @primary-color;
          right: 84px;
          cursor: move;

          i {
            font-weight: bold !important;
          }
        }

        &.delete {
          color: #f56c6c;
          border: 1px solid #f56c6c;
          right: 16px;
        }
      }

      &:hover {
        background: #e6f2ff;

        span {
          opacity: 1;
        }
      }

      &.active {
        border-color: @primary-color;
        background: #e6f2ff;

        span {
          opacity: 1 !important;
        }
      }
    }
  }
}
